package com.xh.petdogexpert.base.tool;

import java.io.BufferedReader;
import java.io.File;
import java.io.FileReader;

public class FileRead {

	public static String read(String path) throws Exception{
		
		File file = new File(FileRead.class.getClassLoader().getResource("/").getPath()+"email_message/forgetPassword.html");
		String content = "";
		try (BufferedReader bufferedReader = new BufferedReader(new FileReader(file))) {
			String line;
			while ((line = bufferedReader.readLine()) != null) {
				content = content + line;
			}
		}
		return content;
	}
}
